package com.hiultra.archive.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hiultra.common.annotation.Excel;
import com.hiultra.common.core.domain.BaseEntity;
import com.hiultra.common.core.domain.entity.ArcStorehouse;
import com.hiultra.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 阈值设置对象 arc_environment_set
 *
 * @author ls
 * @date 2022-07-28
 */
public class ArcEnvironmentSet extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 设置Id
     */
    private Long setId;

    /**
     * 档案区编号
     */
    @Excel(name = "档案区编号")
    private String areaNo;

    /**
     * 最低温度
     */
    @Excel(name = "最低温度")
    private String minTemperature;

    /**
     * 最高温度
     */
    @Excel(name = "最高温度")
    private String maxTemperature;

    /**
     * 最低湿度
     */
    @Excel(name = "最低湿度")
    private String minHumidity;

    /**
     * 最高湿度
     */
    @Excel(name = "最高湿度")
    private String maxHumidity;

    /**
     * 最低pm25
     */
    @Excel(name = "最低pm25")
    private String minPm25;

    /**
     * 最高pm25
     */
    @Excel(name = "最高pm25")
    private String maxPm25;

    /**
     * 最低pm10
     */
    @Excel(name = "最低pm10")
    private String minPm10;

    /**
     * 最高pm10
     */
    @Excel(name = "最高pm10")
    private String maxPm10;

    /**
     * 操作人ID
     */
    @Excel(name = "操作人ID")
    private Long operatorId;

    /**
     * 是否短信报警
     */
    @Excel(name = "是否短信报警")
    private Integer isSms;

    /**
     * 温湿度间隔
     */
    @Excel(name = "温湿度间隔")
    private Integer temInterval;

    /**
     * 水浸报警间隔
     */
    @Excel(name = "水浸报警间隔")
    private Integer waterInterval;

    /**
     * 烟感报警间隔
     */
    @Excel(name = "烟感报警间隔")
    private Integer smokeInterval;

    /**
     * 红外报警间隔
     */
    @Excel(name = "红外报警间隔")
    private Integer infraredInterval;

    /**
     * 空气质量报警间隔
     */
    @Excel(name = "空气质量报警间隔")
    private Integer airInterval;

    /**
     * 报警信息接收人
     */
    @Excel(name = "报警信息接收人")
    private String alarmPhone;

    /**
     * 报警邮件接收人
     */
    @Excel(name = "报警邮件接收人")
    private String alarmEmail;

    /**
     * 状态0-正常，1-停用
     */
    @Excel(name = "状态0-正常，1-停用")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    /**
     * 删除标识 0-正常，1删除
     */
    private Integer delflag;
    private ArcStorehouse storehouse;
    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public ArcStorehouse getStorehouse() {
        return storehouse;
    }

    public void setStorehouse(ArcStorehouse storehouse) {
        this.storehouse = storehouse;
    }

    public void setSetId(Long setId) {
        this.setId = setId;
    }

    public Long getSetId() {
        return setId;
    }

    public void setAreaNo(String areaNo) {
        this.areaNo = areaNo;
    }

    public String getAreaNo() {
        return areaNo;
    }

    public void setMinTemperature(String minTemperature) {
        this.minTemperature = minTemperature;
    }

    public String getMinTemperature() {
        return minTemperature;
    }

    public void setMaxTemperature(String maxTemperature) {
        this.maxTemperature = maxTemperature;
    }

    public String getMaxTemperature() {
        return maxTemperature;
    }

    public void setMinHumidity(String minHumidity) {
        this.minHumidity = minHumidity;
    }

    public String getMinHumidity() {
        return minHumidity;
    }

    public void setMaxHumidity(String maxHumidity) {
        this.maxHumidity = maxHumidity;
    }

    public String getMaxHumidity() {
        return maxHumidity;
    }

    public void setMinPm25(String minPm25) {
        this.minPm25 = minPm25;
    }

    public String getMinPm25() {
        return minPm25;
    }

    public void setMaxPm25(String maxPm25) {
        this.maxPm25 = maxPm25;
    }

    public String getMaxPm25() {
        return maxPm25;
    }

    public void setMinPm10(String minPm10) {
        this.minPm10 = minPm10;
    }

    public String getMinPm10() {
        return minPm10;
    }

    public void setMaxPm10(String maxPm10) {
        this.maxPm10 = maxPm10;
    }

    public String getMaxPm10() {
        return maxPm10;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setIsSms(Integer isSms) {
        this.isSms = isSms;
    }

    public Integer getIsSms() {
        return isSms;
    }

    public void setTemInterval(Integer temInterval) {
        this.temInterval = temInterval;
    }

    public Integer getTemInterval() {
        return temInterval;
    }

    public void setWaterInterval(Integer waterInterval) {
        this.waterInterval = waterInterval;
    }

    public Integer getWaterInterval() {
        return waterInterval;
    }

    public void setSmokeInterval(Integer smokeInterval) {
        this.smokeInterval = smokeInterval;
    }

    public Integer getSmokeInterval() {
        return smokeInterval;
    }

    public void setInfraredInterval(Integer infraredInterval) {
        this.infraredInterval = infraredInterval;
    }

    public Integer getInfraredInterval() {
        return infraredInterval;
    }

    public void setAirInterval(Integer airInterval) {
        this.airInterval = airInterval;
    }

    public Integer getAirInterval() {
        return airInterval;
    }

    public void setAlarmPhone(String alarmPhone) {
        this.alarmPhone = alarmPhone;
    }

    public String getAlarmPhone() {
        return alarmPhone;
    }

    public void setAlarmEmail(String alarmEmail) {
        this.alarmEmail = alarmEmail;
    }

    public String getAlarmEmail() {
        return alarmEmail;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }

    public Integer getDelflag() {
        return delflag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("setId", getSetId())
                .append("storehouseId", getAreaNo())
                .append("minTemperature", getMinTemperature())
                .append("maxTemperature", getMaxTemperature())
                .append("minHumidity", getMinHumidity())
                .append("maxHumidity", getMaxHumidity())
                .append("minPm25", getMinPm25())
                .append("maxPm25", getMaxPm25())
                .append("minPm10", getMinPm10())
                .append("maxPm10", getMaxPm10())
                .append("operatorId", getOperatorId())
                .append("isSms", getIsSms())
                .append("temInterval", getTemInterval())
                .append("waterInterval", getWaterInterval())
                .append("smokeInterval", getSmokeInterval())
                .append("infraredInterval", getInfraredInterval())
                .append("airInterval", getAirInterval())
                .append("alarmPhone", getAlarmPhone())
                .append("alarmEmail", getAlarmEmail())
                .append("status", getStatus())
                .append("delflag", getDelflag())
                .toString();
    }
}
